package org.yejiali.exception;

import org.yejiali.common.enums.AppHttpCodeEnum;

/**
 * @Author:yejiali
 * @Date:2025/2/20-02-20-19:20
 * @Decsription:org.yejiali.exception 自定义异常类
 * @Version:1.0
 */
public class SystemException extends RuntimeException{
    private int code;
    private String msg;
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
    public SystemException(AppHttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.code = httpCodeEnum.getCode();
        this.msg = httpCodeEnum.getMsg();
    }
}
